package com.ruibang.glass.quality.domain.resp;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-01-12  14:12
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class DefectDetailResp {
    @TableField(value = "CustomerPanelId")
    private String glassId;
    @TableField(value = "StartTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    @TableField(value = "DefectName")
    private String defectName;
    @TableField(value = "MaterialCenterDW")
    private Double x;
    @TableField(value = "MaterialCenterCW")
    private Double y;
    @TableField(value = "TiltedSize")
    private Double tiltedSize;
    @TableField(value = "TiltedDepth")
    private Double tiltedDepth;
    @TableField(value = "TiltedDiv")
    private Double tiltedDiv;
    @ApiModelProperty("横切时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime stationStartTime;
}
